package Rozklady;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.HeadlessException;

import javax.swing.JFrame;
import javax.swing.JTextArea;

class TextArea extends JTextArea {

	public TextArea() {
		super();
		this.setBackground(Color.blue);
		this.setFont(new Font("Dialog", Font.BOLD, 14));
		this.setForeground(Color.yellow);
	}

}

public class TextAreaTest extends JFrame {

	public TextAreaTest(String title) throws HeadlessException {
		super(title);
		add(new TextArea());
		setPreferredSize(new Dimension(350, 500));
		setVisible(true);
		pack();
		this.setLocationRelativeTo(null);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
	}

	public static void main(String[] args) {

		TextAreaTest f = new TextAreaTest("test");

	}

}
